package com.foreknow.demo7;

public class Dog extends Pet {
    @Override
    public void toHospital() {
        setHealth(60);
        System.out.println("扎针");
    }

    @Override
    public void eat() {
        System.out.println(" dog  吃饭。。");
    }

    /**
     * 新拓展的方法
     */
    public void game(){
        System.out.println("dog game..");
    }
}
